﻿using Desktop.Client.Models;
using System;
using System.Collections.Generic;

namespace Desktop.Client.Views
{
    public interface IProductView
    {  // 这里接口里面定义了产品这个业务对象的所有操作行为
        event EventHandler ViewLoad;
        event EventHandler<ProductViewModel> AddNewProduct;  // 添加
        event EventHandler<ProductViewModel> ModifyProduct;  // 修改
        event EventHandler<int> DeleteProduct;  // 删除
        event EventHandler<int> ProductSelected;

        void PopulateDataGridView(IList<Product> products);  // 展示
        void ClearInputControls();
        void ShowMessage(string message);
    }
}